package com.gp.learn.ssm.base.system.mapper;

import com.gp.learn.ssm.base.core.mybaits.base.mapper.SuperMapper;
import com.gp.learn.ssm.base.system.entity.BaseRole;
import com.gp.learn.ssm.base.system.entity.BaseRoleUser;

import java.util.List;

/**
 * 系统角色-用户关联 Mapper 接口
 * @author gp
 * @since 2020-07-24
 */
public interface BaseRoleUserMapper extends SuperMapper<BaseRoleUser> {

    /**
     * 获取用户拥有的角色
     * @param userId
     * @return
     */
    List<BaseRole> selectRoleListByUser(Long userId);
}
